import api from "./http"
// 轮播图接口
const getbarner=()=>{
  return api({url:"home/swiperdata"})
}
// nav导航栏接口
const getnav=()=>{
  return api({url:"home/catitems"})
}
//底部楼层
const getfloordata=()=>{
  return api({url:"home/floordata"})
}
//请求分类列表接口
const getcategories=()=>{
    return api({url:"categories"})
}
//请求商品列表数据
const getgoodsList=(obj)=>{
    return api({url:"goods/search",data:obj})
}
//请求商品详情数据
const getgoods=(id)=>{
  return api({url:"goods/detail?goods_id="+id})
}

export {getbarner,getnav,getfloordata,getcategories,getgoodsList,getgoods}